/* === LICENSE INFO ===
 * This source file is subject to the GPLv3 license that is bundled with this
 * package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl.txt
 * === end of LICENSE INFO === */

/*==============================================================================
  File Name   : LogScreenWriter.cpp
  Description : Definition for LogScreenWriter class in GLog module.

  Created on  : 2009-09-29
  Updated on  : 2011-01-30
  Updated by  : Lee Shiou Ming

  Cautions    : (important notes)
  ============================================================================*/

//------------------------------------------------------------------------------
//-- INCLUDES & DEFINES
//------------------------------------------------------------------------------
#include "LogScreenWriter.hpp"
#include <iostream>

using namespace gUtil::GLog;


//------------------------------------------------------------------------------
//-- INITIALIZATIONS
//------------------------------------------------------------------------------


//------------------------------------------------------------------------------
//-- FUNCTION IMPLEMENTATIONS
//------------------------------------------------------------------------------
void LogScreenWriter::append(const std::string& _logMessage,
        const std::string& _logLevelString,
        const ptime& _log_msg_time)
{
    std::cout << formatLogMessage(_logMessage, _logLevelString, _log_msg_time);
}
